package july.android.cakes.controller;

import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
import july.android.cakes.service.STimetable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 *
 * @author S_Cake
 * @version 课表信息 Controller
 */
@RestController
@EnableAutoConfiguration 
public class CTimetable {

    @Autowired
    private STimetable sv;

    
    //获取学生课程表
    @RequestMapping("/get_studentcourse")
    public List<Map<String, Object>> do_studentCourse(@RequestParam("id") String stu_id) {
        return sv.studentCourse(stu_id);
    }

    //获取教师课程表
    @RequestMapping("/get_teachercourse")
    public List<Map<String, Object>> do_teacherCourse(@RequestParam("id") String tea_id) {
        return sv.teacherCourse(tea_id);
    }

}
